home *** CD-ROM | disk | FTP | other *** search
/ Champak 140 / (Vol 140) Sep 19 2011.iso / Games / red_cross_eru.swf / scripts / __Packages / gamebase / utils / SaturationManager.as < prev    next >
Text File  |  2011-09-19  |  2KB  |  74 lines

  1. §§push(true);
  2. §§push(false);
  3. §§push(false);
  4. §§push(true);
  5. while(true)
  6. {
  7.    if(┬º┬ºpop())
  8.    {
  9.    }
  10.    if(┬º┬ºpop())
  11.    {
  12.    }
  13.    if(┬º┬ºpop())
  14.    {
  15.       break;
  16.    }
  17.    ┬º┬ºpush(true);
  18.    ┬º┬ºpush(false);
  19. }
  20. if(!e.f)
  21. {
  22.    e.f = new g();
  23. }
  24. §§pop();
  25. if(!e.f.h)
  26. {
  27.    e.f.h = new g();
  28. }
  29. §§pop();
  30. if(!e.f.h[§§constant(4)])
  31. {
  32.    var _loc2_ = f.h[┬º┬ºconstant(4)] = function()
  33.    {
  34.    }[┬º┬ºconstant(5)];
  35.    f.h[┬º┬ºconstant(4)] = function()
  36.    {
  37.    }[┬º┬ºconstant(6)] = function(object, amount)
  38.    {
  39.       amount /= 100;
  40.       var _loc4_ = new eval(┬º┬ºconstant(7))[┬º┬ºconstant(8)][┬º┬ºconstant(9)]();
  41.       var _loc7_ = [1,0,0,0,0];
  42.       var _loc8_ = [0,1,0,0,0];
  43.       var _loc6_ = [0,0,1,0,0];
  44.       var _loc5_ = [0,0,0,1,0];
  45.       var _loc2_ = [0.3,0.59,0.11,0,0];
  46.       var _loc1_ = new ┬º\┬º\┬ºconstant(10)┬º();
  47.       _loc1_ = _loc1_[┬º┬ºconstant(12)](f.h[┬º┬ºconstant(4)][┬º┬ºconstant(11)](_loc2_,_loc7_,amount));
  48.       _loc1_ = _loc1_[┬º┬ºconstant(12)](f.h[┬º┬ºconstant(4)][┬º┬ºconstant(11)](_loc2_,_loc8_,amount));
  49.       _loc1_ = _loc1_[┬º┬ºconstant(12)](f.h[┬º┬ºconstant(4)][┬º┬ºconstant(11)](_loc2_,_loc6_,amount));
  50.       _loc1_ = _loc1_[┬º┬ºconstant(12)](_loc5_);
  51.       _loc4_[┬º┬ºconstant(13)] = _loc1_;
  52.       object[┬º┬ºconstant(8)] = [_loc4_];
  53.    };
  54.    f.h[┬º┬ºconstant(4)] = function()
  55.    {
  56.    }[┬º┬ºconstant(11)] = function(ary1, ary2, t)
  57.    {
  58.       var _loc3_ = ary1[┬º┬ºconstant(14)] < ary2[┬º┬ºconstant(14)] ? ary2[┬º┬ºconstant(15)]() : ary1[┬º┬ºconstant(15)]();
  59.       var _loc1_ = _loc3_[┬º┬ºconstant(14)];
  60.       while(true)
  61.       {
  62.          _loc1_;
  63.          if(!_loc1_--)
  64.          {
  65.             break;
  66.          }
  67.          _loc3_[_loc1_] = ary1[_loc1_] + (ary2[_loc1_] - ary1[_loc1_]) * t;
  68.       }
  69.       return _loc3_;
  70.    };
  71.    ┬º┬ºpush(┬º┬ºconstant(16)(f.h[┬º┬ºconstant(4)][┬º┬ºconstant(5)],null,1));
  72. }
  73. §§pop();
  74.